<template>
  <Dialog ref="dialog" title="地址" width="500">
    <el-form
      ref="ruleFormRef"
      :model="ruleForm"
      :rules="rules"
      label-width="100px"
      class="demo-ruleForm"
      status-icon
    >
      <el-form-item label="所在地区" prop="name">
        <el-input v-model="ruleForm.name" placeholder="请输入所在地区" />
      </el-form-item>
      <el-form-item label="详细地址" prop="name">
        <el-input v-model="ruleForm.name" placeholder="请输入详细地址" />
      </el-form-item>
      <el-form-item label="收货人姓名" prop="name">
        <el-input v-model="ruleForm.name" placeholder="请输入收货人姓名" />
      </el-form-item>
      <el-form-item label="收货人电话" prop="name">
        <el-input v-model="ruleForm.name" placeholder="请输入收获人电话" />
      </el-form-item>
      <el-divider />
      <div class="right">
        <el-button>取消</el-button>
        <el-button type="primary" @click="colsechange">确定</el-button>
      </div>
    </el-form>
  </Dialog>
</template>
<script setup>
import Dialog from '@/components/Dialog/Dialog.vue';
import { reactive, ref } from 'vue';
const dialog = ref();
const ruleForm = reactive({
  name: '',
});
function openChange() {
  dialog.value.openChange();
}
function colsechange() {
  dialog.value.closeChange();
}
defineExpose({
  openChange,
});
</script>
